/*
 * Copyright (c) 2018, ZeeSec Technologies. All rights reserved.
 * ZeeSec PROPRIETARY/CONFIDENTIAL.
 */

package springtest.httpClient;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument;

/**
 * @author ZhiQiang Chen
 * @date 2018-11-23 15:51:04
 */

public class CustomHTMLDocument extends HTMLDocument {
    private static final Log LOG = LogFactory.getLog(HTMLDocument.class);
    private final StringBuilder writeBuilder_ = new StringBuilder();
    private boolean writeInCurrentDocument_ = true;
    private boolean executionExternalPostponed_;

    @Override
    protected void write(String content) {
        final HtmlPage page = (HtmlPage) getDomNodeOrDie();
        System.err.print(content);
        super.write(content);
    }

}
